package com.ctg.itrdc.sysmgr.portal.data.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ctg.itrdc.pasp.core.Entity;


@Table(name = "STAFF")
public class Staff extends Entity<Long> {
	private static final long serialVersionUID = -2811347047325737314L;


	/**
	 * 员工标识
	 */
	@Id
	@Column(name = "STAFF_ID")
	private Long staffId;

	/**
	 * 员工类型，LOVB,内部员工外部员工电信外包员工
	 */
	@Column(name = "STAFF_TYPE")
	private String staffType;

	/**
	 * 参与人标识,参与人唯一标识
	 */
	@Column(name = "PARTY_ID")
	private Long partyId;

	/**
	 * 创建人
	 */
	@Column(name = "CREATE_STAFF")
	private Long createStaff;

	/**
	 * 修改时间
	 */
	@Column(name = "UPDATE_DATE")
	private Timestamp updateDate;

	/**
	 * 销售员编码：12位，类型码1位(Y)，地区码6位、序列码5位两部分组成
	 */
	@Column(name = "SALESSTAFF_CODE")
	private String salesstaffCode;

	/**
	 * 员工账号
	 */
	@Column(name = "STAFF_ACCOUNT")
	private String staffAccount;

	/**
	 * 员工编码
	 */
	@Column(name = "STAFF_CODE")
	private String staffCode;

	/**
	 * 状态变更的时间
	 */
	@Column(name = "STATUS_DATE")
	private Timestamp statusDate;

	/**
	 * 租户标识。
	 */
	@Column(name = "TENANT_ID")
	private Long tenantId;

	/**
	 * 公用管理区域标识,记录区域唯一标识
	 */
	@Column(name = "COMMON_REGION_ID")
	private Long commonRegionId;

	/**
	 * 组织标识外键,员工的归属管理组织
	 */
	@Column(name = "ORG_ID")
	private Long orgId;

	/**
	 * 分片键1，固定值-1。
	 */
	@Column(name = "SHARD1")
	private Long shard1;

	/**
	 * 修改人
	 */
	@Column(name = "UPDATE_STAFF")
	private Long updateStaff;

	/**
	 * 分片键2，固定值-1。
	 */
	@Column(name = "SHARD2")
	private Long shard2;

	/**
	 * 员工描述
	 */
	@Column(name = "STAFF_DESC")
	private String staffDesc;

	/**
	 * 记录员工状态，LOVB，有效、暂停、锁定、密码错误锁定、停用、无效、未生效
	 */
	@Column(name = "STATUS_CD")
	private String statusCd;

	/**
	 * 员工名称
	 */
	@Column(name = "STAFF_NAME")
	private String staffName;

	/**
	 * 创建时间
	 */
	@Column(name = "CREATE_DATE")
	private Timestamp createDate;


	public void setStaffId(Long staffId){
		this.staffId = staffId;
	}

	public Long getStaffId(){
		return this.staffId;
	}

	public void setStaffType(String staffType){
		this.staffType = staffType;
	}

	public String getStaffType(){
		return this.staffType;
	}

	public void setPartyId(Long partyId){
		this.partyId = partyId;
	}

	public Long getPartyId(){
		return this.partyId;
	}

	public void setCreateStaff(Long createStaff){
		this.createStaff = createStaff;
	}

	public Long getCreateStaff(){
		return this.createStaff;
	}

	public void setUpdateDate(Timestamp updateDate){
		this.updateDate = updateDate;
	}

	public Timestamp getUpdateDate(){
		return this.updateDate;
	}

	public void setSalesstaffCode(String salesstaffCode){
		this.salesstaffCode = salesstaffCode;
	}

	public String getSalesstaffCode(){
		return this.salesstaffCode;
	}

	public void setStaffAccount(String staffAccount){
		this.staffAccount = staffAccount;
	}

	public String getStaffAccount(){
		return this.staffAccount;
	}

	public void setStaffCode(String staffCode){
		this.staffCode = staffCode;
	}

	public String getStaffCode(){
		return this.staffCode;
	}

	public void setStatusDate(Timestamp statusDate){
		this.statusDate = statusDate;
	}

	public Timestamp getStatusDate(){
		return this.statusDate;
	}

	public void setTenantId(Long tenantId){
		this.tenantId = tenantId;
	}

	public Long getTenantId(){
		return this.tenantId;
	}

	public void setCommonRegionId(Long commonRegionId){
		this.commonRegionId = commonRegionId;
	}

	public Long getCommonRegionId(){
		return this.commonRegionId;
	}

	public void setOrgId(Long orgId){
		this.orgId = orgId;
	}

	public Long getOrgId(){
		return this.orgId;
	}

	public void setShard1(Long shard1){
		this.shard1 = shard1;
	}

	public Long getShard1(){
		return this.shard1;
	}

	public void setUpdateStaff(Long updateStaff){
		this.updateStaff = updateStaff;
	}

	public Long getUpdateStaff(){
		return this.updateStaff;
	}

	public void setShard2(Long shard2){
		this.shard2 = shard2;
	}

	public Long getShard2(){
		return this.shard2;
	}

	public void setStaffDesc(String staffDesc){
		this.staffDesc = staffDesc;
	}

	public String getStaffDesc(){
		return this.staffDesc;
	}

	public void setStatusCd(String statusCd){
		this.statusCd = statusCd;
	}

	public String getStatusCd(){
		return this.statusCd;
	}

	public void setStaffName(String staffName){
		this.staffName = staffName;
	}

	public String getStaffName(){
		return this.staffName;
	}

	public void setCreateDate(Timestamp createDate){
		this.createDate = createDate;
	}

	public Timestamp getCreateDate(){
		return this.createDate;
	}

	@Override
	public Long getId() {
		return staffId;
	}
	
	@Override
	public void setId(Long id) {
		this.staffId = id;
	}
	
	public Staff() {
		super();
    }
}
